<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>设备型号</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
  </script>
 </head>
 <body>
		<t:formvalid formid="formobj" dialog="true" layout="table" action="nodeController.do?doUpdate" tiptype="1" >
		<input id="id" name="id" type="hidden" value="${node.id }">
		<input id="createDate" name="createDate" type="hidden" value="${node.createDate }">
		<input id="deleted" name="isDeleted" type="hidden" value="${node.isDeleted }">
		<table style="" cellpadding="0" cellspacing="1" class="formtable">   
				<tr>
					<td align="right">
						<label class="Validform_label">
							节点名称：
						</label>
					</td>
					<td class="value">
					     	 <input id="deviceNodeName" name="deviceNodeName" type="text"
					     	  style="width: 150px" class="inputxt" datatype="*" onkeypress="specialTextValidate()"
					     	  value="${node.deviceNodeName}">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">节点名称</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							NVS ID：
						</label>
					</td>
					<td class="value">
					     	 <input id="nvsid" name="nvsid" type="text"
					     	  style="width: 150px" class="inputxt" datatype="*" onkeypress="specialTextValidate()" value="${node.nvsid}">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">NVS ID</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							node ID：
						</label>
					</td>
					<td class="value">
					     	 <input id="nodeId" name="nodeId" type="text"
					     	  style="width: 150px" class="inputxt" datatype="*" onkeypress="specialTextValidate()" value="${node.nodeId}">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">node ID</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							NET ID：
						</label>
					</td>
					<td class="value">
					     	 <input id="netId" name="netId" type="text"  style="width: 150px" class="inputxt" datatype="*" onkeypress="specialTextValidate()" value="${node.netId}">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">NET ID</label>
					</td>
				</tr>
					<tr>
					<td align="right">
						<label class="Validform_label">
							实验室:
						</label>
					</td>
					<td class="value">
						${node.lab.name}
					</td>
				</tr>			
				<tr>
					<td align="right">
						<label class="Validform_label">
							实验机床:
						</label>
					</td>
					<td class="value">
					     <input id="deviceId" name="deviceId" type="hidden" value='${node.labDevice.id}'>               
					     <input id="machineName"  type="text" style="width: 150px" class="inputxt" readonly="readonly" datatype="*" value="${node.labDevice.machineName}">
					     <t:choose hiddenName="deviceId" hiddenid="id" url="labDeviceController.do?goSelect" name="deviceBrandList"
                          icon="icon-search" title="选择实验机床" textname="machineName" inputTextname="machineName" isclear="false" isInit="true"></t:choose>
							
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">实验机床</label>
					</td> 
				</tr>
				 
			</table>
		</t:formvalid>
 </body>
<script>
	function roomSelected(iframe){
		var buildingNo =  iframe.getcomputerRoomListSelections("buildingNo")[0];
		var roomNo = iframe.getcomputerRoomListSelections("roomNo")[0]; 
		 
		$('#roomNo').val(buildingNo+"-"+roomNo);
		 
	}
</script>
